import React from "react";
class ShoppingList  extends React.Component {
    render() {
        return (
            <div className="shopping-list">
                <h1>Shopping List for {this.props.name} </h1>
                <p>
                    {this.props.messages}
                </p>
            </div>
        )
    }
}
export default ShoppingList